package GIT;

import java.util.Scanner;

import static GIT.QueryGrade.information;
import static GIT.StatisticsGrade.statisticsGrade;
import static GIT.StudentInformation.addGrade;

public class Menu {
    public static void showMenu() {
        System.out.println("========================");
        System.out.println("学生成绩管理系统");
        System.out.println("========================");
        System.out.println("请选择操作:");
        System.out.println("1.记录学生成绩");
        System.out.println("2.查询学生成绩");
        System.out.println("3.统计学生成绩");
        System.out.println("4.退出");
        System.out.println("请输入选项序号");

        Scanner scanner = new Scanner(System.in);
        String choice = scanner.nextLine();
        switch (choice) {
            case "1":
                addGrade();
                break;
            case "2":
                information();
                break;
            case "3":
                statisticsGrade();
                break;
            case "4":
                System.out.println("感谢使用学生成绩管理系统，再见!");
                break;
            default:
                System.out.println("无效选项");
        }
    }
}